package edu.zut.bailan.teacher.web.spring.controller;
import edu.zut.bailan.base.web.spring.controller.GenericController;
import edu.zut.bailan.teach.service.StudentManager;
import edu.zut.bailan.teacher.domain.Student;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

//import edu.zut.cs.javaee.dream.base.web.spring.controller.GenericController;
//import edu.zut.cs.javaee.dream.teach.domain.Student;
//import edu.zut.cs.javaee.dream.teach.service.StudentManager;


/**
 *  teach-edu.zut.bailan.student
 * @author liuxiaoming
 *
 */
@RestController
@RequestMapping(value="/teach/student",produces = { MediaType.APPLICATION_JSON_VALUE })
public class TeacherController extends GenericController<Student, Long, StudentManager> {

    public static final Logger logger = LogManager.getLogger(TeacherController.class.getName());

    StudentManager studentManager;


    @Resource
    public void setStudentManager(StudentManager studentManager) {
        this.studentManager = studentManager;
        this.manager = this.studentManager;
    }



}